package lormi.meipin.dto;

import java.math.BigDecimal;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 校验验证码-接口参数对象
 * @author ThreeFeng
 */
public class CheckCodeDto {

	@NotNull(message = "phone ")
	@Pattern(regexp = "^1[0-9]{10}",message="120007")
	private String phone;
	
	@NotNull(message = "100033")
	@Pattern(regexp = "^[1-9]{1}[0-9]{5}",message = "120004")
	private String code;

	private String Invitationcode;
	
	private String deviceid;
	
	private String osname;
	
	private String version;
	
	private BigDecimal longitude;
	
	private BigDecimal latitude;
	
	public Integer getInvitationcodeForInt() {
		return Integer.valueOf(Invitationcode);
	}

	public Integer getCodeForInt() {
		return Integer.valueOf(code);
	}
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getInvitationcode() {
		return Invitationcode;
	}

	public void setInvitationcode(String invitationcode) {
		Invitationcode = invitationcode;
	}

	public String getDeviceid() {
		return deviceid;
	}

	public void setDeviceid(String deviceid) {
		this.deviceid = deviceid;
	}

	public String getOsname() {
		return osname;
	}

	public void setOsname(String osname) {
		this.osname = osname;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public BigDecimal getLongitude() {
		return longitude;
	}

	public void setLongitude(BigDecimal longitude) {
		this.longitude = longitude;
	}

	public BigDecimal getLatitude() {
		return latitude;
	}

	public void setLatitude(BigDecimal latitude) {
		this.latitude = latitude;
	}
}
